package org.achartengine.util;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class PieCharEntryList
{
	/**
	 * add list with follows
	 * float radius, float currentAngle, float angle, int currentX, int currentY, String item
	 */
	private static List<Map<String, Object>> mDataList;
	
	/**
	 * constructor in
	 */
	private PieCharEntryList()
	{
		if (mDataList == null)
		{
			mDataList = new ArrayList<Map<String, Object>>();
		}
	}
	
	public static List<Map<String, Object>> getList()
	{
		new PieCharEntryList();
		return mDataList;
	}
	
	public static List<Map<String, Object>> resetList()
	{
		if (mDataList != null)
		{
			mDataList.clear();
			mDataList = null;
		}
		
		return mDataList;
	}
}
